const Mock = require('mockjs');
const list = require('./xiaomi_list.json')

const data = Mock.mock({
	"list": list.data.sections,
	"tab|10": [{
		"title": '@ctitle(2)',
		"id": '@id',
		"children|10-20": [{
			"id": "@id",
			"title": '@ctitle',
			"word": '@cword(10, 20)',
			"price|10-1000": 1,
			"image": '@image(100x80, @color, image)'
		}]
	}],
	"userList": [{
		id: "1",
		username: 'admin',
		password: 'admin',
		nickname: '购物达人',
		avator: 'https://robohash.org/1231',
		"addressList": [
			{
				"nickname": '张三',
				"tel": '13111111111',
				"address": '上海奉贤区-八维宏烨校区',
				pos: { lng: 121.702951, lat: 30.87662 },
				"id": "@id"
			},
			{
				"nickname": '张三',
				"tel": '13111111111',
				"address": '北京海淀区-上地校区-八维研修学院',
				pos: { lng: 116.306771, lat: 40.047299 },
				"id": "@id"
			}, {
				"nickname": '张三',
				"tel": '13111111111',
				"address": '沧州黄骅市北京交通大学海滨学院',
				pos: { lng: 117.32044, lat: 38.389979 },
				"id": "@id"
			}, {
				"nickname": '张三',
				"tel": '13111111111',
				"address": '北京市北京交通大学',
				pos: { lng: 116.34974, lat: 39.957902 },
				"id": "@id"
			}
		],
		"orderList": []
	}, {
		"id": '2',
		username: '666666',
		password: '666666',
		nickname: '快歌的人',
		avator: 'https://robohash.org/1231?sets=set3',
		"addressList": [
			{
				"nickname": '李小明',
				"tel": '13765432344',
				"address": '八维-天津校区',
				pos: { lng: 116.952662, lat: 39.177023 },
				"id": "@id"
			},
			{
				"nickname": '李小明',
				"tel": '13765432344',
				"address": '八维-宿迁校区',
				pos: { lng: 118.295825, lat: 34.022845 },
				"id": "@id"
			}
		],
		"orderList": []
	}]
})

module.exports = data

